function Foo_foo:
  LOADK R1 "foo"
  RETURN R1 2
  RETURN R0 1

function Bar_main:
  GETGLOBAL R2 "__GOSSIP_NEW"
  LOADK R3 "Foo"
  CALL R2 2 2
  MOVE R1 R2
  GETGLOBAL R2 "out"
  SELF R2 R2 "print"
  MOVE R4 R1
  SELF R4 R4 "foo"
  CALL R4 2 2
  CALL R2 3 1
  RETURN R0 1

function main:
  GETGLOBAL R0 "__GOSSIP_CLASS"
  LOADK R1 "Foo"
  CALL R0 2 1
  GETGLOBAL R0 "__GOSSIP_METHOD"
  LOADK R1 "Foo"
  LOADK R2 "foo"
  CLOSURE R3 Foo_foo 1
  CALL R0 4 1
  GETGLOBAL R0 "__GOSSIP_CLASS"
  LOADK R1 "Bar"
  CALL R0 2 1
  GETGLOBAL R0 "__GOSSIP_METHOD"
  LOADK R1 "Bar"
  LOADK R2 "main"
  CLOSURE R3 Bar_main 1
  CALL R0 4 1
  GETGLOBAL R0 "__GOSSIP_RUN"
  LOADK R1 "Bar"
  CALL R0 2 1
  RETURN R0 1
